package com.tarim.wheat.mapper;

import com.tarim.wheat.model.Information;
import com.tarim.wheat.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("InformationMapper")
public interface InformationMapper {
    Information selectByPrimaryKey(Long id);

    Long selectByConditionCount(Criteria criteria);

    List<Information> selectByCondition(Criteria criteria);

    int updateForDelete(Long id);

    int insert(Information information);
}